package com.leinao.constant;

/**
 * @author  wangshoufa 
 * @date 2018年11月28日 下午5:56:52
 *
 */

public enum ProjectEnum {
	
	GET_PROJECT_ERROR(1000, "获取项目列表失败"),
	
	GET_PROJECT_DETAIL_ERROR(1001, "获取项目明细失败"),
	
	PROJECT_TYPE_OPEN_NO(0, "未公开项目"),
	
	PROJECT_NAME_USABLE(0, "项目名可用"),
	
	PROJECT_NAME_DISABLED(-2, "项目名不可用"),

	USER_HAS_NO_PROJECT(-20, "this user has no project"),

	PROJECT_HAS_NO_JOB(-21, "project has no job"),

	GET_OUTPUTS_SUCCESS(0, "get outputs success!"),

	GET_QUOTE_OUTPUTS_SUCCESS(0, "get quote outputs success!"),

	QUOTE_OUTPUT_IS_NULL(1, "quote outputs is null!"),

	PROJECT_NOT_USER(-10, "项目非用户自己的项目"),

    PROJECT_ID_IS_EMPTY(-11, "复制项目ID不能为空"),

    PROJECT_JOB_IDS_IS_EMPTY(-12, "复制项目任务ID不能为空"),

	PROJECT_IS_NOT_PUBLIC(-13, "项目并非公开项目 "),

	PUBLIC_ID_IS_ERROR(-14, "项目ID错误 "),

	COPY_DATA_IS_ERROR(-15, "复制项目准备数据错误 ");


	private Integer seq;

    private String desc;

    ProjectEnum(Integer seq, String desc) {
        this.seq = seq;
        this.desc = desc;
    }

	public int getSeq() {
		return seq;
	}

	public String getDesc() {
		return desc;
	}
	
}
